home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-09-05 | 1.9 KB | 91 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="4"
- "UIPATH"="Hardware\Modem"
- "NAME"="COM Port Speed"
- "VERSION"="2.00"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Speed up COM1:"
- "TEXT 2"="Speed up COM2:"
- "TEXT 3"="Speed up COM3:"
- "TEXT 4"="Speed up COM4:"
- "DESCRIPTION 1"="By default, Windows only allows 9600 bytes on every serial port."
- "DESCRIPTION 2"="These settings simply tell the computer to allow speeds over 9600 bytes per second with Internet connections."
- "DESCRIPTION 3"="This speeds up downloads and file transfers, etc. and can make the Internet a lot faster."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"=" "
- "COMMENT 3"="Thanks to AXCEL216 (http://members.aol.com/axcel216/) and CptSiskoX (http://sites.netscape.com/computingx/)!"
-
-
- sFile="WIN.INI"
- sReg="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports\"
-
- sSec="Ports"
- sTa="COM"
- sTb=":"
-
- '*DEFAULT*
- sV_Normal="9600,n,8,1,x"
- '*BETTER*
- sV_Better="921600,n,8,1,p"
-
- bIniMode=true
-
-
- Sub Plugin_Initialize
- if GetWinVer=1 or GetWinVer=3 then
- bIniMode=true
- else
- bIniMode=false
- end if
-
-
- for i=1 to 4
- s=sTa & i & sTb
-
- if bIniMode then
- s=IniReadValue(sFILE,sSec,s)
- else
- s=RegReadValue(sReg & s)
- end if
-
-
- if s=sV_Better then
- SetUIElement i,true
- end if
- next
-
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- for i=1 to 4
- b=GetUIElement(i)
- s=sTa & i & sTb
-
- if b=true then
- sTemp=sV_Better
- else
- sTemp=sV_Normal
- end if
-
-
- if bIniMode then
- Call IniWriteValue(sFILE,sSec,s,sTemp)
- else
- Call RegWriteValue(sReg & s,sTemp,1)
- end if
- next
-
-
-
- Call Logoff()
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-